home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ Oct 89 / Z0148-Update on Printing -Oct89 < prev    next >
Encoding:
Text File  |  1989-10-23  |  1.3 KB  |  40 lines  |  [TEXT/GEOL]

  1. Item    5659851                         20-Oct-89        12:07
  2.  
  3. From:   D2086                           Efficient Field Svc, C Faith,PRT
  4.  
  5. To:     APPLE.BUGS                      Apple Bugs Reporting
  6.         MACAPP.TEST                     MacApp SQA Team
  7.         MACAPP.TECH$                    MACAPP Tech
  8.  
  9. Sub:    Update on Printing Problems
  10.  
  11. I figured out the problem that I was having with Printing a Window.
  12.  
  13. It turns out the method:
  14. FUNCTION TWindow.Focus: BOOLEAN; OVERRIDE;
  15.  
  16.  
  17. was bombing on this line:
  18.  
  19.    MacsBugStr('TWindow.Focus: Port is incorrect');
  20.  
  21. Since this is an inline and I am not that good with assembler I will go no
  22. further.
  23.  
  24. I do not know what MacsBugStr ordinarily does when MacsBug is not installed (as
  25. I don't use it) but this time it bombed for no apparent reason.  This may be a
  26. bug!  Now ordinarily one will not get here since the GrafPorts will be set
  27. fine, but since printing changes the GrafPort the code tried to invoke the
  28. MacsBugStr call.  It would have been nicer to get the ProgramBreak message.
  29.  
  30. One further thing:
  31.  
  32. It seems TWindows don't ordinarily like to be printed, this is a shame as it
  33. seems a natural thing to do.
  34.  
  35. I had to Override both TWindow.Focus and TWindow.Draw to get this done.  It was
  36. not big deal but being able to print windows should perhaps be easier.
  37.  
  38. - Curtis Faith
  39.  
  40.